#!/bin/sh

gen_help()
{
	echo "This is the help file of Megral Email Services"
	echo
	echo "========================================="
	echo
	echo "- Usage"
	echo "  Send email with supported title to jtan.mailservice@gmail.com, "
	echo "   put sub-commands in email content to get data back."
	echo "  This service is for internal usage only."
	echo
	echo "- Commands"
	echo "  getalpha"
	echo "   getalpha is to get article from seekingalpha.com. The sub-command"
	echo "    is the url of the article, ex:"
	echo "    http://seekingalpha.com/article/1089411"
	echo "   One url per line, support multiple lines"
	echo
	echo "  getstockprice"
	echo "   getstockprice is to get the predefined stock prices, The sub-commands"
	echo "    are showing below (must be ended with .dat)"
	echo "    [help].dat     get all the support sub-commands"
	echo "    xxx.dat        the sub-commands supported, replace xxx with real value"
	echo
	echo "  help"
	echo "   generarte this help"
	echo
	echo "Thanks for supporting this service"
	echo "James Tan"
}

gen_help > page.txt

